@extends('layouts.master3')
@section('title','新用户注册')
@section('content')
    <link rel="stylesheet" href="/css/login.css" type="text/css">
    <div class="container">
        <div class="row">
            <div class="col-md-6 col-md-offset-3">

                <p>
                    <font color="#FF0000">
                        <?php
                        echo $errors->first();
                        ?>
                    </font>
                </p>
                <div class="panel panel-login">
                    <h2 style="margin-left: 30px;">千里码</h2>

                    <p style="font-size: 18px;margin-left: 30px;">Code is cheap,show me the answer.</p>

                    <div class="panel-heading">
                        <div class="row">
                            <div class="col-xs-6">
                                <a href="#" id="login-form-link">登录</a>
                            </div>
                            <div class="col-xs-6">
                                <a href="#" class="active" id="register-form-link">注册</a>
                            </div>
                        </div>
                        <hr>
                    </div>
                    <div class="panel-body">
                        <div class="row">
                            <div class="col-lg-12">
                                <form id="login-form" action="/auth/login" method="post" role="form"
                                      style="display: none;">
                                    {!! csrf_field() !!}
                                    <div class="form-group">
                                        <input type="text" name="email" id="email" tabindex="1" class="form-control"
                                               placeholder="邮箱" value="">
                                    </div>
                                    <div class="form-group">
                                        <input type="password" name="password" id="password" tabindex="2"
                                               class="form-control" placeholder="密码">
                                    </div>
                                    <div class="form-group text-center">
                                        <input type="checkbox" tabindex="3" class="" name="remember" id="remember">
                                        <label for="remember"> 记住我</label>
                                    </div>
                                    <div class="form-group">
                                        <div class="row">
                                            <div class="col-sm-6 col-sm-offset-3">
                                                <input type="submit" name="login-submit" id="login-submit" tabindex="4"
                                                       class="form-control btn btn-login" value="登录">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <div class="row">
                                            <div class="col-lg-12">
                                                <div class="text-center">
                                                    <a href="/password/email" tabindex="5"
                                                       class="forgot-password">忘记密码?</a>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </form>
                                <form id="register-form" action="/auth/register" method="post" role="form"
                                      style="display: block;">
                                    {!!csrf_field()!!}

                                    <div class="form-group">
                                        <input type="hidden" name="utm" id="utm" value="{{$utm}}">
                                    </div>
                                    <div class="form-group">
                                        <input type="text" name="name" id="name" tabindex="1" class="form-control"
                                               placeholder="用户名" value="">
                                    </div>
                                    <div class="form-group">
                                        <input type="email" name="email" id="email" tabindex="1" class="form-control"
                                               placeholder="邮箱" value="">
                                    </div>
                                    <div class="form-group">
                                        <input type="password" name="password" id="password" tabindex="2"
                                               class="form-control" placeholder="密码">
                                    </div>
                                    <div class="form-group">
                                        <input type="password" name="password_confirmation" id="password_confirmation"
                                               tabindex="2" class="form-control" placeholder="再次输入密码">
                                    </div>
                                    <div class="form-group">
                                        <div class="row">
                                            <div class="col-sm-6 col-sm-offset-3">
                                                <input type="submit" tabindex="4" class="form-control btn btn-register"
                                                       value="提交">
                                            </div>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection

@section("js")
    <script src="/js/login.js"></script>
@stop
